package com.bky.service.impl;

import com.bky.dao.base.BaseWriterMapper;
import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class BaseServiceImpl implements BaseWriterMapper {
    @Resource(name = "sqlSessionMaster")
    private SqlSession sqlSessionMaster;

    @Override
    public <T> T getWriteMapper(Class<T> t) {
        return sqlSessionMaster.getMapper(t);
    }
}
